package org.jash.ting13.home

import androidx.databinding.BindingAdapter
import com.youth.banner.Banner
import org.jash.ting13.entity.SliderEntity
@BindingAdapter("adapter")
fun setBannerAdapter(banner: Banner<SliderEntity, HomeAdapter>, data:List<SliderEntity>) {
    banner.setAdapter(HomeAdapter(data))
}